<template>
  <el-container class="index-con">
    <el-container class="main-con">
      <el-header class="index-header">
        <nav-top></nav-top>
      </el-header>
      <el-main class="index-main">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
// 导入组件
import NavTop from "@/components/content/NavTop.vue";

export default {
  name: "index",

  data() {
    return {};
  },
  // 注册组件
  components: {
    NavTop,
  },

  methods: {},

  created() {},
};
</script>


<style lang="less">
.index-con {
  width: 100%;
  height: 100%;
}
.index-header,
.index-main {
  padding: 0px !important;
  background-color: @bg-color;
}
.index-header {
  height: 70px !important;
}
.index-main {
  padding: 30px;
  height: calc(~"100vh - 70px");
  box-sizing: border-box;
  &::-webkit-scrollbar {
    width: 0;
  }
}
</style>
